#ifndef DRAW_H_
#define DRAW_H_

#include	<stdio.h>


typedef int		vec_t;
typedef vec_t	vec2_t[2];

typedef struct {
	vec2_t	c;
	int	w;
	int h;
}rec_t;

typedef struct {
	vec2_t	c;
	int r;
}cir_t;


typedef struct {
	FILE * fd;
	int		w;
	int		h;
}PS_option_t;




/** Initialisation. */
extern void InitDraw(void * arg);

/** Tracer une ligne. */
extern void DrawLine(vec2_t from, vec2_t to);

/** Tracer un cercle. */
extern void DrawCir(cir_t * cir);
//extern void DrawCir(vec2_t c, int r);

/** Tracer un rectangle. */
extern void DrawRec(rec_t * rec);
//extern void DrawRec(vec2_t c, int w, int h);

/** Ecrire du texte. */
extern void DrawText(vec2_t c, char * str);

/** Tracer un segment reliant deux cercles. */
extern void DrawLink(cir_t * c1, cir_t * c2);

/** Force l'affichage. */
extern void flushDraw();

#endif /* DRAW_H_ */
